package com.orion.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 * @date 2021/10/19
 */

@RestController
@RequestMapping("/test")
public class TestController {

    @Value("${server.port}")
    private Integer port;

    @Value("${gate.code}")
    private String gateCode;

    @Value("${gate.code2}")
    private String gateCode2;

    @GetMapping("/gateCode")
    public String gateCode(){
        return "gate code =" + gateCode + " , port = " + port;
    }

    @GetMapping("/gateCode2")
    public String gateCode2(){
        return "gate code2 =" + gateCode2 + " , port = " + port;
    }
}
